package com.skyolder.milkbee.repository;

import com.skyolder.milkbee.domain.ExchangeRecord;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the ExchangeRecord entity.
 */
@SuppressWarnings("unused")
public interface ExchangeRecordRepository extends JpaRepository<ExchangeRecord,Long> {

	Page<ExchangeRecord> findByUserIdAndSchedule(Long userId, String schedule, Pageable pageable);

	Page<ExchangeRecord> findBySchedule(String schedule, Pageable pageable);

}
